package com.crud.service;

import com.crud.dao.DepartmentMapper;
import com.crud.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author sc
 * @ClassName DepartmentService
 * @Description class function:
 * @Date 2022/4/8 19:38:56
 **/

@Service
public class DepartmentService {

    @Autowired
    DepartmentMapper departmentMapper;


    public List<Department> getDepts() {
        List<Department> list = departmentMapper.selectByExample(null);
        return  list;
    }
}
